using System;
using System.Collections.Generic;
using System.ServiceModel.Channels;
using System.ServiceModel.Dispatcher;
using System.Text;

namespace Weever.Json.Binding
{
    class JsonClientMessageFormatter: IClientMessageFormatter 
    {
        private IClientMessageFormatter _innerClientFormatter;
        
        internal JsonClientMessageFormatter(IClientMessageFormatter clientMessageFormatter)
        {
            _innerClientFormatter = clientMessageFormatter;
        }

        public Message SerializeRequest(MessageVersion messageVersion, object[] parameters)
        {
            return _innerClientFormatter.SerializeRequest(messageVersion, parameters);
        }

        public object DeserializeReply(Message message, object[] parameters)
        {
            return _innerClientFormatter.DeserializeReply(message, parameters);
        }

    }
}
